var entityCollection = require('../../../Base/server/controllers/EntityCollection');

//根据条件查询物流配送记录
exports.queryByCondition = function(condition, completeFun) {
    var entity = entityCollection.getEntity("DeliveryRecord");
    entity.findOne(condition, null, function(err, record) {
        if (err) {
            completeFun(err);
        } else {
            completeFun(null, record);
        }
    });
};
